Xbasic
OBJECT.CONTAINER_GET Function
Syntax
Container as C = .Container_Get()
Description
Get the name of the container object for an object if any.
Discussion
The <OBJECT>.CONTAINER_GET() method applies to:
- Form Controls (for <OBJECT> use the <CONTROL> pointer or the address of the control)
The <OBJECT>.CONTAINER_GET() method returns the name of the control's container. The method returns NULL ("") unless the control is placed within a container within the form. The method is useful when using tabbed controls and frames.
Example
dim ptr as P dim fld as P ptr = form.load("customerx") fld = ptr.child("Fullname") ? fld.Container_Get() -> "TABBED1.tabs.sheet[2]"
Limitations
Desktop applications only.
See Also